<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="&amp;#x524D;&amp;#x63D0;&amp;#xFF1A;   &amp;#x4E4B;&amp;#x524D;&amp;#x5199;&amp;#x8FC7;&amp;#x4E00;&amp;#x7BC7;Android Google&amp;#x5E94;&amp;#x7528;&amp;#x5185;&amp;#x652F;&amp;#x4ED8;,&amp;#x521A;&amp;#x597D;&amp;#x516C;&amp;#x53F8;&amp;#x7684;&amp;#x4E3B;&amp;#x8425;&amp;#x4E1A;&amp;#x52A">
<meta property="og:type" content="article">
<meta property="og:title" content="Android 海外应用内支付之ONE store（韩国支付SDK）集成封装">
<meta property="og:url" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/index.html">
<meta property="og:site_name" content="Silence潇湘夜雨">
<meta property="og:description" content="&amp;#x524D;&amp;#x63D0;&amp;#xFF1A;   &amp;#x4E4B;&amp;#x524D;&amp;#x5199;&amp;#x8FC7;&amp;#x4E00;&amp;#x7BC7;Android Google&amp;#x5E94;&amp;#x7528;&amp;#x5185;&amp;#x652F;&amp;#x4ED8;,&amp;#x521A;&amp;#x597D;&amp;#x516C;&amp;#x53F8;&amp;#x7684;&amp;#x4E3B;&amp;#x8425;&amp;#x4E1A;&amp;#x52A">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/1.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/2.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/3.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/4.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/5.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/6.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/7.png">
<meta property="og:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/8.png">
<meta property="og:updated_time" content="2019-08-21T06:32:07.351Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Android 海外应用内支付之ONE store（韩国支付SDK）集成封装">
<meta name="twitter:description" content="&amp;#x524D;&amp;#x63D0;&amp;#xFF1A;   &amp;#x4E4B;&amp;#x524D;&amp;#x5199;&amp;#x8FC7;&amp;#x4E00;&amp;#x7BC7;Android Google&amp;#x5E94;&amp;#x7528;&amp;#x5185;&amp;#x652F;&amp;#x4ED8;,&amp;#x521A;&amp;#x597D;&amp;#x516C;&amp;#x53F8;&amp;#x7684;&amp;#x4E3B;&amp;#x8425;&amp;#x4E1A;&amp;#x52A">
<meta name="twitter:image" content="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/1.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/">





  <title>Android 海外应用内支付之ONE store（韩国支付SDK）集成封装 | Silence潇湘夜雨</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Silence潇湘夜雨</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">Android开发一枚</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home //首页"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user //关于"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags  //标签"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th //分类"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive //归档"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-schedule">
          <a href="/schedule/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-calendar //日程表"></i> <br>
            
            日程表
          </a>
        </li>
      
        
        <li class="menu-item menu-item-sitemap">
          <a href="/sitemap.xml" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-sitemap //站点地图"></i> <br>
            
            站点地图
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/08/21/Android-海外应用内支付之ONE-store（韩国支付SDK）集成封装/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Silence潇湘夜雨">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Silence潇湘夜雨">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Android 海外应用内支付之ONE store（韩国支付SDK）集成封装</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-08-21T14:19:28+08:00">
                2019-08-21
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/支付/" itemprop="url" rel="index">
                    <span itemprop="name">支付</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  2.6k
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  16
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="&#x524D;&#x63D0;&#xFF1A;"><a href="#&#x524D;&#x63D0;&#xFF1A;" class="headerlink" title="&#x524D;&#x63D0;&#xFF1A;"></a>&#x524D;&#x63D0;&#xFF1A;</h3><p>   &#x4E4B;&#x524D;&#x5199;&#x8FC7;&#x4E00;&#x7BC7;<a href="https://www.jianshu.com/p/c275d4d363bd" target="_blank" rel="noopener">Android Google&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;</a>,&#x521A;&#x597D;&#x516C;&#x53F8;&#x7684;&#x4E3B;&#x8425;&#x4E1A;&#x52A1;&#x662F;&#x6D77;&#x5916;app&#x5F00;&#x53D1;&#x3002;&#x524D;&#x6BB5;&#x65F6;&#x95F4;&#x4E5F;&#x9700;&#x8981;&#x652F;&#x6301;&#x4E86;&#x97E9;&#x56FD;&#x90A3;&#x8FB9;&#x7684;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#xFF0C;&#x7ED9;&#x7684;&#x6587;&#x6863;&#x4E0A;&#x9762;&#x8BB2;&#x4E86;&#x9700;&#x8981;&#x96C6;&#x6210;onestore&#x652F;&#x4ED8;&#x3002;&#x7531;&#x4E8E;&#x5BF9;&#x97E9;&#x56FD;&#x90A3;&#x8FB9;&#x7684;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x6CA1;&#x6709;&#x4EC0;&#x4E48;&#x6982;&#x5FF5;&#xFF0C;&#x6240;&#x4EE5;&#x5C31;&#x767E;&#x5EA6;&#x4E86;&#x4E00;&#x756A;&#x3002;&#x5948;&#x4F55;&#xFF0C;&#x6587;&#x6863;&#x592A;&#x5C11;&#x6216;&#x8005;&#x5199;&#x7684;&#x4E0D;&#x662F;&#x5F88;&#x6E05;&#x6670;&#xFF08;&#x96BE;&#x9053;&#x80FD;&#x8BF4;&#x662F;&#x56E0;&#x4E3A;&#x81EA;&#x5DF1;&#x4E0D;&#x592A;&#x7406;&#x89E3;&#xFF09;&#x3002;&#x6240;&#x4EE5;&#xFF0C;&#x81EA;&#x5DF1;&#x5C31;&#x770B;&#x7740;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x505A;&#x4E86;&#x96C6;&#x6210;&#x4E86;&#x4E00;&#x756A;&#xFF0C;&#x8E29;&#x4E86;&#x4E0D;&#x5C11;&#x5751;&#x3002;&#x4F46;&#x662F;&#xFF0C;&#x603B;&#x4F53;&#x6765;&#x8BF4;&#xFF0C;&#x6BD4;&#x8F83;<a href="https://dev.onestore.co.kr/devpoc/reference/view/Tools" target="_blank" rel="noopener">&#x5B98;&#x65B9;&#x6587;&#x6863;</a>&#x8BB2;&#x7684;&#x6BD4;&#x8F83;&#x6E05;&#x695A;&#x3002;&#x597D;&#x4E86;&#xFF0C;&#x8BB2;&#x4E86;&#x8FD9;&#x4E48;&#x591A;&#xFF0C;&#x4E0B;&#x9762;&#x770B;&#x5982;&#x4F55;&#x96C6;&#x6210;&#x5427;&#x3002;</p>
<h3 id="&#x9996;&#x5148;"><a href="#&#x9996;&#x5148;" class="headerlink" title="&#x9996;&#x5148;"></a>&#x9996;&#x5148;</h3><ul>
<li>1&#x3001;&#x67E5;&#x770B;&#x6587;&#x6863;<br> &#x8981;&#x505A;ONE store&#x96C6;&#x6210;&#x5F00;&#x53D1;&#xFF0C;&#x7B2C;&#x4E00;&#x6B65;&#x5F53;&#x7136;&#x662F;&#x67E5;&#x770B;<a href="https://dev.onestore.co.kr/devpoc/reference/view/Tools" target="_blank" rel="noopener">&#x5B98;&#x65B9;&#x6587;&#x6863;</a>&#x4E86;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x96C6;&#x6210;&#x7684;&#x662F;&#x6700;&#x65B0;&#x7684;&#x7248;&#x672C;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;v5&#x7248;&#x672C;&#x3002;&#x4E5F;&#x6709;&#x4E4B;&#x524D;&#x7684;v3&#x548C;v4&#x7B49;&#x7248;&#x672C;&#xFF0C;&#x4F46;&#x662F;&#xFF0C;&#x4EBA;&#x8981;&#x5411;&#x524D;&#x770B;&#x4E0D;&#x662F;&#x3002;&#x6240;&#x4EE5;&#xFF0C;&#x5C31;&#x96C6;&#x6210;&#x4E86;&#x6700;&#x65B0;&#x7684;&#x7248;&#x672C;&#x4E86;&#x3002;</li>
</ul>
<p><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/1.png" alt="onestore&#x5B98;&#x65B9;&#x6587;&#x6863;"><br><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/2.png" alt="onestore&#x5B98;&#x65B9;&#x6587;&#x6863;&#x96C6;&#x6210;"></p>
<ul>
<li>2&#x3001;&#x4E0B;&#x8F7D;ONE store&#x7684;jar&#x5305;&#xFF08;&#x5728;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#x7684;&#x5730;&#x65B9;&#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x7684;&#x5F00;&#x53D1;&#x5305;&#x548C;&#x5B98;&#x65B9;demo&#xFF09;<br> <strong>&#x9898;&#x5916;&#x8BDD;&#xFF1A;&#x611F;&#x89C9;&#x5B98;&#x65B9;&#x7684;demo&#x5199;&#x7684;&#x771F;&#x7684;&#x4E0D;&#x548B;&#x5730;,&#x8FD8;&#x6CA1;&#x6709;&#x6587;&#x6863;&#x5199;&#x7684;&#x6E05;&#x695A;&#xFF0C;&#x5E76;&#x4E14;&#x8BA9;&#x4EBA;&#x770B;&#x5F97;&#x4E91;&#x91CC;&#x96FE;&#x91CC;&#x7684;&#x3002;</strong><br><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/3.png" alt="image"></li>
</ul>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;&#x5B98;&#x65B9;jar&#x5305;&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#x5728;github&#x4E0A;&#x9762;</strong>&#xFF0C;&#x4E0D;&#x6E05;&#x695A;&#x7684;&#x53EF;&#x4EE5;<a href="https://github.com/ONE-store/iap_v5/tree/onestore_iap_sample" target="_blank" rel="noopener">&#x70B9;&#x8FD9;&#x91CC;&#x67E5;&#x770B;</a></p>
<p><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/4.png" alt="jar&#x4E0B;&#x8F7D;&#x5730;&#x5740;"></p>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;&#x4E0A;&#x9762;&#x7EA2;&#x6846;&#x6807;&#x6CE8;&#x7684;&#x5C31;&#x662F;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x7684;jar&#x5305;</strong></p>
<ul>
<li>3&#x3001;&#x652F;&#x4ED8;&#x63A5;&#x5165;&#x6587;&#x6863;&#xFF08;&#x4E24;&#x79CD;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#xFF09;<br>1&#x3001;&#x8C03;&#x7528;AIDL&#x63A5;&#x53E3;&#x5B9E;&#x73B0;<br>2&#x3001;&#x4F7F;&#x7528;SDK&#x5B9E;&#x73B0;&#xFF08;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x7B2C;&#x4E8C;&#x79CD;&#xFF0C;&#x7B14;&#x8005;&#x4F7F;&#x7528;&#x7684;&#x5C31;&#x662F;&#x7B2C;&#x4E8C;&#x79CD;&#xFF09;<br><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/5.png" alt="image"></li>
</ul>
<p>###&#x3000;&#x5176;&#x6B21;<br>&#x3000;&#x4E0A;&#x9762;&#x8BB2;&#x4E86;&#x90A3;&#x4E48;&#x591A;&#xFF0C;&#x90A3;&#x4E48;&#x770B;&#x770B;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x7684;&#x63A5;&#x5165;&#x5230;&#x5E95;&#x662F;&#x4E2A;&#x4EC0;&#x4E48;&#x6837;&#x5B50;&#x7684;&#x5462;&#xFF1F;&#x4E0B;&#x9762;&#x662F;&#x76EE;&#x5F55;&#x622A;&#x56FE;<br><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/6.png" alt="image"></p>
<p>&#xFF0B;&#xFF11;&#x3001;&#x5728;&#x770B;&#x5230;&#x4E86;&#x4E0A;&#x9762;&#x7684;&#x622A;&#x56FE;&#x4E4B;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x8FD9;&#x91CC;&#x8BB2;&#x4E00;&#x4E0B;&#x652F;&#x4ED8;&#x7684;&#x6574;&#x4E2A;&#x6D41;&#x7A0B;&#x3002;</p>
<ul>
<li>&#x7B2C;&#x4E00;&#x6B65;&#xFF1A;&#x5B89;&#x88C5;ONE store&#x5BA2;&#x6237;&#x7AEF;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x5B89;&#x88C5;ONE store&#x7684;&#x5BA2;&#x6237;&#x7AEF;&#x662F;&#x4E0D;&#x80FD;&#x652F;&#x4ED8;&#x7684;&#xFF0C;&#x5E76;&#x4E14;&#x9700;&#x8981;&#x81EA;&#x5907;&#x68AF;&#x5B50;&#x3002;</li>
<li>&#x7B2C;&#x4E8C;&#x6B65;&#xFF1A;&#x521D;&#x59CB;&#x5316;ONE store&#xFF0C;&#x5982;&#x679C;&#x521D;&#x59CB;&#x5316;&#x5931;&#x8D25;&#x6216;&#x8005;&#x8FDE;&#x63A5;&#x4E0D;&#x5230;ONE store&#x4E5F;&#x662F;&#x4E0D;&#x80FD;&#x8C03;&#x8D77;ONE store&#x652F;&#x4ED8;&#x7684;&#x3002;</li>
<li>&#x7B2C;&#x4E09;&#x6B65;&#xFF1A;&#x67E5;&#x8BE2;&#x662F;&#x5426;&#x652F;&#x6301;ONE store&#x652F;&#x4ED8;&#xFF0C;&#x5982;&#x679C;&#x652F;&#x6301;&#x518D;&#x8FDB;&#x884C;&#x4E0B;&#x4E00;&#x6B65;&#x3002;</li>
<li>&#x7B2C;&#x56DB;&#x6B65;&#xFF1A;&#x67E5;&#x8BE2;&#x8D2D;&#x4E70;&#x8BB0;&#x5F55;&#xFF0C;&#x5E76;&#x4E14;&#x8FDB;&#x884C;&#x6D88;&#x8D39;&#xFF08;&#x4E3B;&#x8981;&#x662F;&#x9488;&#x5BF9;&#x7BA1;&#x7406;&#x578B;&#x5546;&#x54C1;(inapp)&#xFF09;&#x3002;<strong>&#x6CE8;&#x610F;&#xFF1A;&#x5982;&#x679C;&#x4E0D;&#x8FDB;&#x884C;&#x6D88;&#x8D39;&#x662F;&#x4E0D;&#x80FD;&#x8FDB;&#x884C;&#x8D2D;&#x4E70;&#x8BF7;&#x6C42;&#x7684;&#xFF08;&#x548C;Google&#x652F;&#x4ED8;&#x5F88;&#x76F8;&#x4F3C;&#xFF09;&#xFF0C;&#x8FD9;&#x91CC;&#x7B14;&#x8005;&#x521A;&#x5F00;&#x59CB;&#x88AB;&#x5751;&#x4E86;&#x5F88;&#x4E45;&#xFF0C;&#x4E00;&#x76F4;&#x4E0D;&#x80FD;&#x652F;&#x4ED8;&#xFF0C;&#x4E3B;&#x8981;&#x8FD8;&#x662F;&#x6CA1;&#x6709;&#x8BA4;&#x771F;&#x770B;&#x6587;&#x6863;&#xFF0C;&#x54C8;&#x54C8;&#x54C8;&#x3002;</strong></li>
<li>&#x7B2C;&#x4E94;&#x6B65;&#xFF1A;&#x586B;&#x5199;&#x76F8;&#x5173;&#x4FE1;&#x606F;&#xFF0C;&#x8FDB;&#x884C;&#x8D2D;&#x4E70;&#x8BF7;&#x6C42;&#x3002;</li>
<li>&#x7B2C;&#x516D;&#x6B65;&#xFF1A;&#x8FD9;&#x91CC;&#x5462;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x5BF9;onestore&#x8D2D;&#x4E70;&#x8BF7;&#x6C42;&#x7684;&#x56DE;&#x8C03;&#x5904;&#x7406;&#x3002;&#x6BD4;&#x5982;&#x8BF4;&#x62FF;&#x5230;&#x652F;&#x4ED8;ID&#x548C;&#x8BA2;&#x5355;&#x53F7;&#xFF0C;&#x4E0A;&#x4F20;&#x5230;&#x81EA;&#x5DF1;&#x7684;&#x670D;&#x52A1;&#x5668;&#x8FDB;&#x884C;&#x9A8C;&#x8BC1;&#x5904;&#x7406;&#x3002;&#x5982;&#x679C;&#x9A8C;&#x8BC1;&#x901A;&#x8FC7;&#x4E86;&#xFF0C;&#x670D;&#x52A1;&#x5668;&#x90A3;&#x8FB9;&#x4F1A;&#x548C;ONE store&#x5BF9;&#x63A5;&#x9A8C;&#x8BC1;&#xFF0C;&#x7136;&#x540E;&#xFF0C;ONE store&#x4F1A;&#x8FDB;&#x884C;&#x53D1;&#x8D27;&#x5904;&#x7406;&#xFF0C;&#x7136;&#x540E;&#x670D;&#x52A1;&#x5668;&#x7ED9;&#x4F60;&#x4E00;&#x4E2A;&#x53CD;&#x9988;&#xFF0C;&#x7136;&#x540E;&#xFF0C;&#x4F60;&#x518D;&#x6B21;&#x8C03;&#x7528;<strong>&#x6D88;&#x8D39;&#x5904;&#x7406;</strong>&#xFF0C;&#x8FD9;&#x6837;&#xFF0C;&#x4E00;&#x4E2A;&#x5B8C;&#x6574;&#x7684;&#x652F;&#x4ED8;&#x6D41;&#x7A0B;&#x5C31;&#x5B8C;&#x4E86;&#x3002;</li>
<li>&#x7B2C;&#x4E03;&#x6B65;&#xFF1A;&#x91CA;&#x653E;&#x64CD;&#x4F5C;&#x3002;</li>
<li>2&#x3001;&#x8BF4;&#x4E86;&#x90A3;&#x4E48;&#x591A;&#xFF0C;&#x4F30;&#x8BA1;&#x4F60;&#x4EEC;&#x770B;&#x6587;&#x5B57;&#x90FD;&#x770B;&#x7D2F;&#x4E86;&#xFF0C;&#x4E0B;&#x9762;&#xFF0C;&#x770B;&#x4EE3;&#x7801;&#x3002;</li>
</ul>
<pre><code>public class OneStorePlayManager {

@SuppressLint(&quot;StaticFieldLeak&quot;)
 //&#x652F;&#x4ED8;&#x5BA2;&#x6237;&#x7AEF;
private static PurchaseClient mPurchaseClient;
 //&#x7248;&#x672C;
private static final int IAP_API_VERSION = 5;
private static final String TAG = OneStorePlayManager.class.getSimpleName();
 //&#x7B7E;&#x540D;&#x9A8C;&#x8BC1;
private static final String KEY_FACTORY_ALGORITHM = &quot;RSA&quot;;
private static final String SIGNATURE_ALGORITHM = &quot;SHA512withRSA&quot;;
 //&#x516C;&#x94A5;
private static String mPublicKey;
  //&#x662F;&#x5426;&#x521D;&#x59CB;&#x5316;
private static boolean mIsInit = false;
private static final String PURCHASE_ID = &quot;PURCHASE_ID&quot;;
private static final String DEVELOPER_PAYLOAD = &quot;DEVELOPER_PAYLOAD&quot;;
//&#x662F;&#x5426;&#x6D88;&#x8D39;
private static boolean mISConsume = false;

private static void init(Context context, String publickey) {
    mPurchaseClient = new PurchaseClient(context, publickey);
    mPublicKey = publickey;
}


/**
 * &#x521D;&#x59CB;&#x5316;
 *
 * @param context   &#x4E0A;&#x4E0B;&#x6587;
 * @param mListener &#x56DE;&#x8C03;
 */
public static void initOneStore(final Activity context, final String publickey,
                                final String productType,

                                final onOneStoreSupportListener mListener) {
    if (!mIsInit) {
        init(context, publickey);
        mIsInit = true;
    }
    if (mPurchaseClient != null) {
        mPurchaseClient.connect(new PurchaseClient.ServiceConnectionListener() {
            @Override
            public void onConnected() {
                if (mListener != null) {
                    mListener.onOneStoreConnected();
                }
                checkBillingSupportedAndLoadPurchases(context, LTAppID, LTAppKey, testID, productType, mListener, mUploadListener);
            }

            @Override
            public void onDisconnected() {
                if (mListener != null) {
                    mListener.onOneStoreDisConnected();
                }
            }

            @Override
            public void onErrorNeedUpdateException() {//&#x5FC5;&#x987B;&#x66F4;&#x65B0;&#x5230;&#x6700;&#x65B0;&#x7684;onestore&#x5BA2;&#x6237;&#x7AEF;&#x540E;&#x624D;&#x80FD;&#x8FDB;&#x884C;&#x652F;&#x4ED8;
                if (mListener != null) {
                    mListener.onOneStoreFailed(OneStoreResult.RESULT_CONNECTED_NEED_UPDATE);
                    PurchaseClient.launchUpdateOrInstallFlow(context);
                }
            }
        });
    }
}

/**
 * &#x68C0;&#x67E5;&#x662F;&#x5426;&#x652F;&#x6301;
 */
private static void checkBillingSupportedAndLoadPurchases(final Context context,
                                                          final String productType,
                                                          final onOneStoreSupportListener mListener) {
    if (mPurchaseClient == null) {
        if (mListener != null) {
            mListener.onOneStoreClientFailed(&quot;PurchaseClient is not initialized&quot;);
        }
    } else {
        mPurchaseClient.isBillingSupportedAsync(IAP_API_VERSION, new PurchaseClient.BillingSupportedListener() {
            @Override
            public void onSuccess() {
                mListener.onOneStoreSuccess(OneStoreResult.RESULT_BILLING_OK);
                // &#x7136;&#x540E;&#x901A;&#x8FC7;&#x5BF9;&#x6258;&#x7BA1;&#x5546;&#x54C1;&#x548C;&#x6BCF;&#x6708;&#x91C7;&#x8D2D;&#x5386;&#x53F2;&#x8BB0;&#x5F55;&#x7684;&#x547C;&#x53EB;&#x63A5;&#x6536;&#x91C7;&#x8D2D;&#x5386;&#x53F2;&#x8BB0;&#x5F55;&#x4FE1;&#x606F;&#x3002;
                //loadPurchases((Activity) context,  mListener);
                Log.e(TAG, &quot;isBillingSupportedAsync : RESULT_BILLING_OK&quot;);
                mPurchaseClient.queryPurchasesAsync(IAP_API_VERSION, productType,
                        new PurchaseClient.QueryPurchaseListener() {
                            @Override
                            public void onSuccess(List&lt;PurchaseData&gt; purchaseDataList, String productType) {
                                Log.e(TAG, &quot;queryPurchasesAsync onSuccess, &quot; + purchaseDataList.toString());
                                for (PurchaseData purchase : purchaseDataList) {
                                    consumeItem((Activity) context&#xFF0C; purchase, mListener);
                                }
                            }

                            @Override
                            public void onError(IapResult iapResult) {
                                mListener.onOneStoreError(&quot;onError====&quot; + iapResult.toString());
                            }

                            @Override
                            public void onErrorRemoteException() {
                                mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_REMOTE_ERROR);
                            }

                            @Override
                            public void onErrorSecurityException() {
                                mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_SECURITY_ERROR);
                            }

                            @Override
                            public void onErrorNeedUpdateException() {
                                mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_NEED_UPDATE);
                                PurchaseClient.launchUpdateOrInstallFlow((Activity) context);
                            }
                        });
            }

            @Override
            public void onError(IapResult iapResult) {
                mListener.onOneStoreError(iapResult.toString());
            }

            @Override
            public void onErrorRemoteException() {
                mListener.onOneStoreFailed(OneStoreResult.RESULT_BILLING_REMOTE_ERROR);
            }

            @Override
            public void onErrorSecurityException() {
                mListener.onOneStoreFailed(OneStoreResult.RESULT_BILLING_SECURITY_ERROR);
            }

            @Override
            public void onErrorNeedUpdateException() {
                mListener.onOneStoreFailed(OneStoreResult.RESULT_BILLING_NEED_UPDATE);
                PurchaseClient.launchUpdateOrInstallFlow((Activity) context);
            }
        });
    }
}


/**
 * &#x5728;&#x7BA1;&#x7406;&#x5546;&#x54C1; (inapp) &#x540E;&#x6216;&#x5386;&#x53F2;&#x8BB0;&#x5F55;&#x89C6;&#x56FE;&#x5B8C;&#x6210;&#x540E;, &#x6D88;&#x8017;&#x6258;&#x7BA1;&#x5546;&#x54C1;&#x7684;&#x6D88;&#x8D39;.
 *
 * @param purchaseData &#x4EA7;&#x54C1;&#x6570;&#x636E;
 */
private static void consumeItem(final Activity context
                                final PurchaseData purchaseData,
                                final onOneStoreSupportListener mListener) {
    if (mPurchaseClient == null) {
        mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_NEED_UPDATE);
        Log.e(TAG, &quot;PurchaseClient is not initialized&quot;);
        return;
    }
    mPurchaseClient.consumeAsync(IAP_API_VERSION, purchaseData,
            new PurchaseClient.ConsumeListener() {
                @Override
                public void onSuccess(PurchaseData purchaseData) {
                    Log.e(TAG, &quot;consumeAsync===success&quot;);
                    mListener.onOneStoreSuccess(OneStoreResult.RESULT_CONSUME_OK);
                    if (!TextUtils.isEmpty(PreferencesUtils.getString(context, PURCHASE_ID)) &amp;&amp;
                            !TextUtils.isEmpty(PreferencesUtils.getString(context, DEVELOPER_PAYLOAD))) {
                        //&#x4E0A;&#x4F20;&#x5230;&#x670D;&#x52A1;&#x5668;&#x5904;&#x7406;&#x8FDB;&#x884C;&#x9A8C;&#x5355;&#xFF0C;&#x9632;&#x6B62;&#x6F0F;&#x5355;
                        uploadServer(xx,xx,xx);
                    } else if (mISConsume) {
                        uploadServer(xx,xx,xx);
                    }
                    mISConsume = false;
                }

                @Override
                public void onError(IapResult iapResult) {
                    mListener.onOneStoreError(iapResult.toString());
                    Log.e(TAG, &quot;consumeAsync onError,  &#x6D88;&#x8D39;&#x9519;&#x8BEF;&quot; + iapResult.toString());
                }

                @Override
                public void onErrorRemoteException() {
                    mListener.onOneStoreFailed(OneStoreResult.RESULT_CONSUME_REMOTE_ERROR);
                    Log.e(TAG, &quot;consumeAsync onError,  &#x6D88;&#x8D39;&#x8FDE;&#x63A5;&#x5931;&#x8D25;&quot;);
                }

                @Override
                public void onErrorSecurityException() {
                    mListener.onOneStoreFailed(OneStoreResult.RESULT_CONSUME_SECURITY_ERROR);
                    Log.e(TAG, &quot;consumeAsync onError,  &#x6D88;&#x8D39;&#x5E94;&#x7528;&#x72B6;&#x6001;&#x5F02;&#x5E38;&#x4E0B;&#x8BF7;&#x6C42;&#x652F;&#x4ED8;&quot;);
                }

                @Override
                public void onErrorNeedUpdateException() {
                    mListener.onOneStoreFailed(OneStoreResult.RESULT_CONSUME_NEED_UPDATE);
                    Log.e(TAG, &quot;consumeAsync onError,  &#x6D88;&#x8D39;&#x4EA7;&#x54C1;&#x9700;&#x8981;&#x66F4;&#x65B0;&quot;);
                }
            });
}


/**
 * oneStore&#x56DE;&#x8C03;
 *
 * @param requestCode     &#x8BF7;&#x6C42;&#x7801;
 * @param resultCode      &#x7ED3;&#x679C;&#x7801;
 * @param selfRequestCode &#x81EA;&#x5B9A;&#x4E49;&#x8BF7;&#x6C42;&#x7801;
 */
public static void onActivityResult(Context context, int requestCode, int resultCode, Intent data, int selfRequestCode, final onOneStoreSupportListener mSupportListener) {
    if (requestCode == selfRequestCode)
        if (resultCode == Activity.RESULT_OK) {
            if (!mPurchaseClient.handlePurchaseData(data)) {
                Log.e(TAG, &quot;onActivityResult handlePurchaseData false &quot;);
            } else {
                String signature = data.getStringExtra(&quot;purchaseSignature&quot;);
                String purchaseData = data.getStringExtra(&quot;purchaseData&quot;);
                Gson gson = new Gson();
                PurchaseData mPurchaseData = gson.fromJson(purchaseData, PurchaseData.class);
                if (mPurchaseData != null) {//&#x8FD9;&#x8FB9;&#x662F;&#x4FDD;&#x5B58;&#x4E00;&#x4E0B;&#x8BA2;&#x5355;&#xFF0C;&#x521A;&#x8FDB;&#x5165;&#x5E94;&#x7528;&#x7684;&#x65F6;&#x5019;&#x8FDB;&#x884C;&#x76F8;&#x5173;&#x5904;&#x7406;
                    PreferencesUtils.putString(context, PURCHASE_ID, mPurchaseData.getPurchaseId());
                    PreferencesUtils.putString(context, DEVELOPER_PAYLOAD, mPurchaseData.getDeveloperPayload());
                    consumeItem((Activity) context,  mPurchaseData, mSupportListener);
                    Log.e(TAG, &quot;onActivityResult handlePurchaseData true &quot; + mPurchaseData.toString() + &quot;===&quot;
                            + signature);
                }
            }
        } else {
            Log.e(TAG, &quot;onActivityResult user canceled&quot;);
        }
}

/**
 * &#x83B7;&#x5F97;&#x5546;&#x54C1;
 *
 * @param productId       &#x5546;&#x54C1;ID
 * @param selfRequestCode &#x8BF7;&#x6C42;&#x7801;
 * @param productName     &#x4EA7;&#x54C1;&#x540D;&#x79F0;
 * @param type &#x4EA7;&#x54C1;&#x7C7B;&#x578B;
 * @param onOneStoreSupportListener  &#x662F;&#x5426;&#x652F;&#x6301;&#x7684;&#x63A5;&#x53E3;
 * @OnCreateOrderFailedListener &#x521B;&#x5EFA;&#x8BA2;&#x5355;&#x7684;&#x63A5;&#x53E3;
 */
public static void getProduct(final Activity context,
                              int selfRequestCode, String productName,
                              final String productId, String type,
                              final onOneStoreSupportListener mListener, final OnCreateOrderFailedListener mCreateListener) {
    if (!mISConsume) {
        if (!mIsInit) {
            init(context, mPublicKey);
        } else {
            getLTOrderID(context,  selfRequestCode, productName, productId, type,
                    mListener,
                    mCreateListener);

        }
    }
}

/**
 * &#x8D2D;&#x4E70;
 * @ devPayLoad &#x8BA2;&#x5355;&#x53F7;&#xFF08;&#x81EA;&#x5DF1;&#x7684;&#x670D;&#x52A1;&#x5668;&#x521B;&#x5EFA;&#x7684;&#xFF09;
 */
private static void launchPurchase(final Activity context,
                                   int selfRequestCode, String productName,
                                   final String productId, String type, final String devPayLoad,
                                   final onOneStoreSupportListener mListener) {
    if (mPurchaseClient != null) {
        mPurchaseClient.launchPurchaseFlowAsync(IAP_API_VERSION,
                context, selfRequestCode, productId, productName,
                type, devPayLoad, &quot;&quot;,
                false, new PurchaseClient.PurchaseFlowListener() {

                    @Override
                    public void onSuccess(PurchaseData purchaseData) {
                        Log.e(TAG, &quot;launchPurchaseFlowAsy======= &quot; + purchaseData.getDeveloperPayload() + &quot;====&quot; + devPayLoad);

                    }

                    @Override
                    public void onError(IapResult result) {
                        Log.e(TAG, &quot;launchPurchaseFlowAsync onError, &quot; + result.toString());
                        mListener.onOneStoreError(result.toString());
                    }

                    @Override
                    public void onErrorRemoteException() {
                        Log.e(TAG, &quot;launchPurchaseFlowAsync onError=====onErrorRemoteException&quot;);
                        mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_FLOW_REMOTE_ERROR);
                    }

                    @Override
                    public void onErrorSecurityException() {
                        Log.e(TAG, &quot;launchPurchaseFlowAsync onError=====onErrorSecurityException&quot;);
                        mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_FLOW_SECURITY_ERROR);
                    }

                    @Override
                    public void onErrorNeedUpdateException() {
                        Log.e(TAG, &quot;launchPurchaseFlowAsync onError=====onErrorNeedUpdateException&quot;);
                        mListener.onOneStoreFailed(OneStoreResult.RESULT_PURCHASES_FLOW_NEED_UPDATE);
                        PurchaseClient.launchUpdateOrInstallFlow(context);
                    }
                });
    }
}


/**
 * &#x521B;&#x5EFA;&#x8BA2;&#x5355;
 *
 */
private static void getLTOrderID(final Activity activity, 
                                 final int selfRequestCode, final String productName,
                                 final String productId, final String type,
                                 final onOneStoreSupportListener mListener,
                                 final OnCreateOrderFailedListener mOrderListener) {
                    //&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x83B7;&#x53D6;&#x8BA2;&#x5355;&#x53F7;&#x7136;&#x540E;&#x8FDB;&#x884C;&#x8D2D;&#x4E70;&#x5904;&#x7406;
                    launchPurchase(activity, selfRequestCode, productName, productId,
                            type, result, mListener);
                    mISConsume = true;

}

private static void uploadServer(final Context context, 
                                 String purchase_id, String devPayLoad) {

             //&#x670D;&#x52A1;&#x5668;&#x9A8C;&#x5355;&#x6210;&#x529F;&#x540E;&#x8FDB;&#x884C;&#x76F8;&#x5173;&#x7684;&#x64CD;&#x4F5C;&#xFF0C;&#x6BD4;&#x5982;&#x8BF4;&#x6E05;&#x9664;&#x6CA1;&#x5FC5;&#x8981;&#x7684;&#x7F13;&#x5B58;&#xFF0C;&#x7B49;&#x7B49;&#x8FD9;&#x4E9B;&#x64CD;&#x4F5C;

            mISConsume = false;
            if (!TextUtils.isEmpty(PreferencesUtils.getString(context, PURCHASE_ID))) {
                PreferencesUtils.remove(context, PURCHASE_ID);
            }
            if (!TextUtils.isEmpty(PreferencesUtils.getString(context, DEVELOPER_PAYLOAD))) {
                PreferencesUtils.remove(context, DEVELOPER_PAYLOAD);
            }

}

/**
 * &#x91CA;&#x653E;
 */
public static void release() {
    mISConsume = false;
    mIsInit = false;
    if (mPurchaseClient != null) {
        mPurchaseClient.terminate();
        mPurchaseClient = null;
    }

}

private static boolean verifyPurchase(String signedData, String signature) {
    if (TextUtils.isEmpty(signedData) || TextUtils.isEmpty(signature)) {
        return false;
    }
    PublicKey key = generatePublicKey(mPublicKey);
    return verify(key, signedData, signature);
}

private static PublicKey generatePublicKey(String encodedPublicKey) {
    try {
        byte[] decodedKey = Base64.decode(encodedPublicKey, Base64.DEFAULT);
        KeyFactory keyFactory = KeyFactory.getInstance(KEY_FACTORY_ALGORITHM);
        return keyFactory.generatePublic(new X509EncodedKeySpec(decodedKey));
    } catch (NoSuchAlgorithmException e) {
        throw new SecurityException(&quot;RSA not available&quot;, e);
    } catch (InvalidKeySpecException e) {
        Log.e(TAG, &quot;Invalid key specification.&quot;);
        throw new IllegalArgumentException(e);
    }
}

private static boolean verify(PublicKey publicKey, String signedData, String signature) {
    try {
        Signature sig = Signature.getInstance(SIGNATURE_ALGORITHM);
        sig.initVerify(publicKey);
        sig.update(signedData.getBytes());
        if (!sig.verify(Base64.decode(signature, Base64.DEFAULT))) {
            Log.e(TAG, &quot;Signature verification failed.&quot;);
            return false;
        }
        return true;
    } catch (NoSuchAlgorithmException e) {
        Log.e(TAG, &quot;NoSuchAlgorithmException.&quot;);
    } catch (InvalidKeyException e) {
        Log.e(TAG, &quot;Invalid key specification.&quot;);
    } catch (SignatureException e) {
        Log.e(TAG, &quot;SignatureTest exception.&quot;);
    } catch (IllegalArgumentException e) {
        Log.e(TAG, &quot;Base64 decoding failed.&quot;);
    }
    return false;
}</code></pre><p>}</p>
<p><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/7.png" alt="image"></p>
<p><strong>&#x5982;&#x4E0A;&#x56FE;&#x6240;&#x793A;&#xFF1A;</strong>&#x53EA;&#x6709;&#x70B9;&#x51FB;close&#x7684;&#x65F6;&#x5019;&#x624D;&#x80FD;&#x652F;&#x4ED8;&#x6210;&#x529F;&#xFF0C;&#x76F4;&#x63A5;&#x9000;&#x51FA;app&#x662F;&#x652F;&#x4ED8;&#x53D6;&#x6D88;&#x5904;&#x7406;&#x3002;</p>
<h3 id="&#x6700;&#x540E;"><a href="#&#x6700;&#x540E;" class="headerlink" title="&#x6700;&#x540E;"></a>&#x6700;&#x540E;</h3><p>&#x8865;&#x5145;&#x4E00;&#x70B9;&#xFF0C;&#x63A5;&#x5165;onestore&#x652F;&#x4ED8;&#x7684;&#x4E00;&#x822C;&#x662F;&#x9762;&#x76F8;&#x97E9;&#x56FD;&#x90A3;&#x8FB9;&#x7684;app&#xFF0C;&#x5E76;&#x4E14;&#x5927;&#x591A;&#x6570;&#x662F;&#x6E38;&#x620F;app&#xFF0C;&#x90A3;&#x4E48;&#xFF0C;&#x5C31;&#x7275;&#x626F;&#x5230;&#x4E86;&#x6A2A;&#x5C4F;&#x3002;&#x90A3;&#x4E48;&#xFF0C;onestore&#x6709;&#x6CA1;&#x6709;&#x6A2A;&#x5C4F;&#x5904;&#x7406;&#x5462;&#xFF1F;&#x5F53;&#x7136;&#x4E86;&#xFF0C;&#x5728;Manifest&#x4E2D;&#x914D;&#x7F6E;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;<br><img src="/2019/08/21/Android-&#x6D77;&#x5916;&#x5E94;&#x7528;&#x5185;&#x652F;&#x4ED8;&#x4E4B;ONE-store&#xFF08;&#x97E9;&#x56FD;&#x652F;&#x4ED8;SDK&#xFF09;&#x96C6;&#x6210;&#x5C01;&#x88C5;/8.png" alt="image"></p>
<p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong>&#x6A2A;&#x5C4F;&#x7684;&#x8BDD;&#x7528;popup&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#xFF0C;&#x4E0D;&#x7528;&#x9009;full&#xFF0C;&#x5982;&#x679C;&#x7AD6;&#x5C4F;&#x5462;&#xFF0C;&#x5199;&#x6210;full&#x6216;&#x8005;&#x4E0D;&#x5199;&#x90FD;&#x662F;&#x53EF;&#x4EE5;&#x7684;&#x3002;</p>
<p>&#x597D;&#x4E86;&#xFF0C;&#x4EE5;&#x4E0A;&#x5C31;&#x662F;&#x8FD9;&#x6B21;onestore&#x7684;&#x5E94;&#x7528;&#x5185;&#x5F00;&#x53D1;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x4EC0;&#x4E48;&#x4E0D;&#x61C2;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x6216;&#x8005;&#x5199;&#x7684;&#x4E0D;&#x597D;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x6B22;&#x8FCE;&#x6307;&#x6B63;&#x3002;&#x5F53;&#x7136;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x52A0;&#x7FA4;&#xFF08;493180098&#xFF09;&#x95EE;&#x6211;</p>
<h3 id="&#x611F;&#x8C22;"><a href="#&#x611F;&#x8C22;" class="headerlink" title="&#x611F;&#x8C22;"></a>&#x611F;&#x8C22;</h3><p><a href="https://blog.csdn.net/leovnay/article/details/79463898" target="_blank" rel="noopener">OneStore_Android_&#x63A5;&#x5165;</a><br>&#x53EF;&#x4EE5;&#x770B;&#x770B;&#xFF0C;&#x4F46;&#x662F;&#x8BB2;&#x7684;&#x4E0D;&#x662F;&#x7279;&#x522B;&#x8BE6;&#x7EC6;&#xFF0C;&#x8FD8;&#x662F;&#x8981;&#x611F;&#x8C22;&#x4E0A;&#x9762;&#x90A3;&#x7BC7;&#x6587;&#x7AE0;&#x7684;&#x4F5C;&#x8005;&#x3002;</p>
<h3 id="&#x611F;&#x609F;"><a href="#&#x611F;&#x609F;" class="headerlink" title="&#x611F;&#x609F;"></a>&#x611F;&#x609F;</h3><p>  &#x901A;&#x8FC7;&#x8FD9;&#x6B21;&#x63A5;&#x5165;ONE store&#x7684;&#x5DE5;&#x4F5C;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x5145;&#x5206;&#x8BA4;&#x8BC6;&#x4E86;&#x81EA;&#x5DF1;&#x3002;&#x4EE5;&#x524D;&#x89C9;&#x5F97;&#x767E;&#x5EA6;&#x4E0A;&#x627E;&#x4E0D;&#x5230;&#x6587;&#x6863;&#xFF0C;&#x5C31;&#x611F;&#x89C9;&#x7279;&#x522B;&#x614C;&#xFF0C;&#x6709;&#x70B9;&#x65E0;&#x6240;&#x9002;&#x4ECE;&#x3002;&#x4F46;&#x662F;&#xFF0C;&#x901A;&#x8FC7;&#x8FD9;&#x6B21;ONE store&#x7684;&#x5F00;&#x53D1;&#xFF0C;&#x89C9;&#x5F97;&#xFF0C;&#x4E5F;&#x5C31;&#x90A3;&#x6837;&#x3002;&#x751F;&#x6D3B;&#x672C;&#x6765;&#x5C31;&#x662F;&#x8FD9;&#x6837;&#x7684;&#xFF0C;&#x90FD;&#x662F;&#x6478;&#x7740;&#x77F3;&#x5934;&#x8FC7;&#x6CB3;&#x3002;&#x9C81;&#x8FC5;&#x5148;&#x751F;&#x8FD8;&#x8BF4;&#x8FC7;&#xFF1A;&#x4E16;&#x4E0A;&#x672C;&#x6CA1;&#x6709;&#x8DEF;&#xFF0C;&#x8D70;&#x7684;&#x4EBA;&#x591A;&#x4E86;&#x4FBF;&#x6709;&#x4E86;&#x8DEF;&#x3002;&#x6536;&#x62FE;&#x597D;&#x5FC3;&#x60C5;&#xFF0C;&#x7EE7;&#x7EED;&#x52AA;&#x529B;&#x5427;&#xFF0C;&#x5C11;&#x5E74;&#xFF0C;&#x54C8;&#x54C8;&#x54C8;&#x54C8;&#x3002;</p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/08/21/Android-Google应用内支付/" rel="next" title="Android Google应用内支付">
                <i class="fa fa-chevron-left"></i> Android Google应用内支付
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/08/21/Android-发布项目到jitpack详解/" rel="prev" title="Android 发布项目到jitpack详解">
                Android 发布项目到jitpack详解 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Silence潇湘夜雨</p>
              <p class="site-description motion-element" itemprop="description">Android开发一枚</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">55</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">16</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/muyishuangfeng" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/1e2eec6f972c" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-heartbeat"></i>简书</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://juejin.im/user/58df0abf61ff4b006b115e43" target="_blank" title="掘金">
                      
                        <i class="fa fa-fw fa-star"></i>掘金</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://twitter.com/yangke20792452" target="_blank" title="Twitter">
                      
                        <i class="fa fa-fw fa-twitter"></i>Twitter</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#前提："><span class="nav-number">1.</span> <span class="nav-text">前提：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#首先"><span class="nav-number">2.</span> <span class="nav-text">首先</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#最后"><span class="nav-number">3.</span> <span class="nav-text">最后</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#感谢"><span class="nav-number">4.</span> <span class="nav-text">感谢</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#感悟"><span class="nav-number">5.</span> <span class="nav-text">感悟</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Silence潇湘夜雨</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">114.8k</span>
  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

  <!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/love.js"></script>
<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618},"display":{"superSample":2,"width":150,"height":300,"position":"right","hOffset":0,"vOffset":-20},"mobile":{"show":false},"react":{"opacityDefault":0.5,"opacityOnHover":0.5},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
